package com.tiankong.product.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Set;

/**
 * <p>
 * 属性&属性分组关联
 * </p>
 *
 * @author scl
 * @since 2021-03-22
 */
@Data
@Accessors(chain = true)
@TableName("t_attr_attrgroup_relation")
public class AttrAttrgroup {

    /**
     * 属性id
     */
    private Long attrId;

    /**
     * 属性分组id
     */
    private Long attrGroupId;

    /**
     * 属性组内排序
     */
    private Integer attrSort;

    @TableField(exist = false)
    private Set<Long> attrIds;

}
